package com.cloudbroker.bcs.platform.dav.middle.dao;

import com.cloudbroker.bcs.platform.dav.middle.dao.base.TenantDAOBase;
import com.cloudbroker.bcs.platform.dav.middle.entity.BrokerVoteLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by wangxu13798 on 2016/10/26.
 */
public interface BrokerVoteLogDao extends TenantDAOBase<BrokerVoteLog,Long> {
    Integer dayVoteFlag(@Param("openid") String openid,@Param("tenant_id")Integer tenant_id,
                        @Param("vote_type") String vote_type,@Param("vote_time")Date vote_time);

    List<BrokerVoteLog> findBrokerVoteToday(@Param("openid")String openId,
                                            @Param("tenant_id")Integer tenant_id,
                                            @Param("vote_time")Date vote_time,
                                            @Param("vote_type") String vote_type);
}
